﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication.General
{
    public partial class RadDropDownListTable : UserControl
    {
        public RadDropDownListTable()
        {
            InitializeComponent();
        }

        private void RadDropDownListTable_Load(object sender, EventArgs e)
        {
        }

        private void rd1_SelectedIndexChanged(object sender, Telerik.WinControls.UI.Data.PositionChangedEventArgs e)
        {
            rd2.SelectedIndex = 1;
        }

        private void rd2_SelectedIndexChanged(object sender, Telerik.WinControls.UI.Data.PositionChangedEventArgs e)
        {
            rd3.SelectedIndex = 1;
        }

        private void rd3_SelectedIndexChanged(object sender, Telerik.WinControls.UI.Data.PositionChangedEventArgs e)
        {
            tableLayoutPanel1.SuspendLayout();
            tableLayoutPanel1.Visible = false;
            rd3.SelectedIndex = 0;
            TableLayoutPanelCellPosition tc = tableLayoutPanel1.GetCellPosition(rd3);
            tc.Row = 0;
            tc.Column = 0;
            tableLayoutPanel1.SetCellPosition(rd3, tc);
            tableLayoutPanel1.RowStyles[2].Height = 100;
            rd3.Visible = false;
            tableLayoutPanel1.Visible = true;
            tableLayoutPanel1.ResumeLayout(false);
            tableLayoutPanel1.PerformLayout();
        }

        public Telerik.WinControls.UI.RadDropDownList Rd1
        {
            get { return rd1; }
            set { rd1 = value; }
        }
    }
}
